import { Component, OnInit } from '@angular/core';
import { NzModalRef, NzMessageService } from 'ng-zorro-antd';
import { _HttpClient } from '@delon/theme';
import {environment} from "@env/environment";

@Component({
  selector: 'app-act-runtime-image',
  templateUrl: './image.component.html',
})
export class ActRuntimeImageComponent implements OnInit {
  record: any = {};
  i: any;
  src='';

  constructor(
    private modal: NzModalRef,
    public msgSrv: NzMessageService,
    public http: _HttpClient
  ) { }

  ngOnInit(): void {
    this.i=this.record;
    this.src=`${environment.SERVER_URL}act/processInstance/getImage?id=${this.i.id}&_t=${new Date().getMilliseconds()}`
  }

  close() {
    this.modal.destroy();
  }
}
